package com.sanqing.po;

import java.util.HashSet;
import java.util.Set;

/**
 * Department entity. @author MyEclipse Persistence Tools
 */

public class Department implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private long phone;
	private String introduction;
	/*private Integer parentId;*/
	private Department parent;
	private Set positions = new HashSet(0);
	private Set recruitments = new HashSet(0);
	private Set employees = new HashSet(0);
	private Set children = new HashSet(0);

	// Constructors

	/** default constructor */
	public Department() {
	}

	/** full constructor */
	public Department(String name, long phone, String introduction,
			/*Integer superiorId,*/Department parent, Set positions, Set recruitments, Set employees,Set children) {
		this.name = name;
		this.phone = phone;
		this.introduction = introduction;
		/*this.parentId = superiorId;*/
		this.parent = parent;
		this.positions = positions;
		this.recruitments = recruitments;
		this.employees = employees;
		this.children = children;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getPhone() {
		return this.phone;
	}

	public void setPhone(long phone) {
		this.phone = phone;
	}

	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	/*public Integer getSuperiorId() {
		return this.parentId;
	}

	public void setSuperiorId(Integer superiorId) {
		this.parentId = superiorId;
	}*/
	
	public Department getParent() {
		return this.parent;
	}
	
	public void setParent(Department parent) {
		this.parent = parent;
	}

	public Set getPositions() {
		return this.positions;
	}

	public void setPositions(Set positions) {
		this.positions = positions;
	}

	public Set getRecruitments() {
		return this.recruitments;
	}

	public void setRecruitments(Set recruitments) {
		this.recruitments = recruitments;
	}

	public Set getEmployees() {
		return this.employees;
	}

	public void setEmployees(Set employees) {
		this.employees = employees;
	}
	
	public Set getChildren() {
		return this.children;
	}
	
	public void setChildren(Set children) {
		this.children = children;
	}

}